/* 会员系统样式 - Member CSS */

/* 基础样式 */
body {
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
}

/* 导航栏用户头像 */
.navbar .rounded-circle {
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* 侧边栏用户信息 */
.user-profile {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.user-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 侧边栏 */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    width: 280px;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 1000;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: #495057;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 3px 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* 主内容区 */
.main-content {
    margin-left: 280px;
    margin-top: 80px;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 统计卡片 */
.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.125);
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    padding: 1.25rem;
}

/* 自定义按钮 */
.btn-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* 量表相关样式 */
.scale-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s ease;
}

.scale-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.scale-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-published { 
    background: #d4edda; 
    color: #155724; 
}

.status-draft { 
    background: #fff3cd; 
    color: #856404; 
}

.status-pending { 
    background: #cce5ff; 
    color: #004085; 
}

/* 会员徽章 */
.member-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 量表创建器样式 */
.step-wizard {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-item:last-child::after {
    display: none;
}

.step-item.active::after,
.step-item.completed::after {
    background: #667eea;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.step-item.active .step-circle {
    background: #667eea;
    color: white;
}

.step-item.completed .step-circle {
    background: #28a745;
    color: white;
}

.question-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
}

.question-item.editing {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.option-input {
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.scoring-rule {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.dimension-tag {
    background: #e7f3ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

/* 数据分析页面 */
.chart-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        top: 0;
        height: 100vh;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 80px;
        padding: 15px;
    }
    
    .step-indicator {
        flex-direction: column;
    }
    
    .step-item::after {
        display: none;
    }
}

/* 表单增强 */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 表格样式 */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table thead th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-top: 1px solid #f1f3f4;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============== 会员方案页面样式 =============== */

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 会员方案卡片 */
.plan-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    overflow: hidden;
    background: white;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* 热门标签 */
.plan-card.popular::before {
    content: "最受欢迎";
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* 方案头部 */
.plan-header {
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.plan-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.plan-header h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.plan-period {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 主题样式 */
.free-theme .plan-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.free-theme .plan-price {
    color: #28a745;
}

.pro-theme .plan-icon {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.pro-theme .plan-price {
    color: #007bff;
}

.pro-theme {
    border: 3px solid #007bff;
    position: relative;
    transform: scale(1.05);
}

.org-theme .plan-icon {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.org-theme .plan-price {
    color: #6f42c1;
}

.research-theme .plan-icon {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
}

.research-theme .plan-price {
    color: #fd7e14;
}

/* 功能列表 */
.plan-features {
    list-style: none;
    padding: 0 30px 30px;
    margin: 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* 功能状态图标 */
.feature-available {
    color: #28a745;
}

.feature-limited {
    color: #ffc107;
}

.feature-unavailable {
    color: #dc3545;
}

/* 按钮样式 */
.btn-plan {
    margin: 0 30px 30px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 对比表格样式 */
.comparison-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.comparison-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 20px 15px;
    margin: 0;
}

.comparison-header .col-md-3,
.comparison-header .col-md-2 {
    text-align: center;
    padding: 10px;
}

.feature-row {
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    margin: 0;
    align-items: center;
    transition: background-color 0.2s ease;
}

.feature-row:hover {
    background-color: #f8f9fa;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row .col-md-3,
.feature-row .col-md-2 {
    text-align: center;
    padding: 10px;
}

.feature-row .col-md-3 {
    text-align: left;
    font-weight: 500;
}

/* 手风琴样式增强 */
.accordion-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.accordion-button {
    border-radius: 10px !important;
    font-weight: 600;
    color: #333;
    background: white;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    margin-top: 80px;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

footer .small {
    line-height: 1.6;
}

footer a:hover {
    color: #fff !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pro-theme {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .plan-card {
        margin-bottom: 30px;
    }
    
    .plan-header {
        padding: 30px 20px 20px;
    }
    
    .plan-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .plan-features {
        padding: 0 20px 20px;
    }
    
    .btn-plan {
        margin: 0 20px 20px;
        padding: 12px;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-header,
    .feature-row {
        min-width: 800px;
    }
    
    .comparison-header .col-md-3,
    .comparison-header .col-md-2,
    .feature-row .col-md-3,
    .feature-row .col-md-2 {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .plan-price {
        font-size: 1.8rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .comparison-header .col-md-3,
    .comparison-header .col-md-2,
    .feature-row .col-md-3,
    .feature-row .col-md-2 {
        font-size: 0.8rem;
        padding: 6px;
    }
}